package top.fwpsl.netty.rpc.rpc.server;

import org.springframework.stereotype.Service;
import top.fwpsl.netty.rpc.rpc.api.HelloRPC;

/**
 * @auther: 风戏fw
 * @date: 2021/2/5
 * @description: 提供服务
 */
@Service
public class HelloRPCImpl implements HelloRPC {
    @Override
    public String hello(String name) {
        return "hello, " + name;
    }

    @Override
    public String hello2(String name, Integer age) {
        return "hello2, " + name;
    }
}
